﻿using MapleLeaf.Pay.Pay;
using System;

namespace Hongsh.Pay.Client.Proxy {

    internal class HongshPayClientProxyConfig : HongshPayClientPluginConfig {
        private string _Mode;


        private string _Address;


        private string[] _Targets;

        public string Mode {
            get => _Mode;
            set {
                _Mode = value;
                PropertyChange("Mode");
            }
        }

        public string Address {
            get => _Address;
            set {
                _Address = value;
                PropertyChange("Address");
            }
        }


        public string[] Targets {
            get => _Targets;
            set {
                _Targets = value;
                PropertyChange("Targets");
            }
        }


        public HongshPayClientProxyConfig() {
            _Mode = string.IsNullOrEmpty(_Mode) ? "HF" : _Mode;
            _Address = string.IsNullOrEmpty(_Address) ? "127.0.0.1" : _Address;
            _Targets = _Targets ?? new string[]
            {
                "https://api.mch.weixin.qq.com",
                "https://openapi.alipay.com",
                "https://partner.95516.com",
                "http://pay.yun8848.com:8099",
                "http://mobilepos.yeahka.com",
                "https://mobilepos.yeahka.com",
                "https://paygate.leshuazf.com",
                "https://xiangqianpos.com",
                "http://api.xiangqianpos.com",
                "http://api-bak.xiangqianpos.com",
                "http://up.proxy.com:18111",
                "https://ytpos.com",
                "http://api.ytpos.com",
                "http://yt-pos.cn",
                "http://api.yt-pos.cn",
                "https://open.vip-yun.cn",
                "https://pospal.cn:8443",
                "http://storeapi-area12.pospal.cn:18111",
                "http://storeapi-area41.pospal.cn:18111",
                "http://master.51pos.com",
                "http://xmlpaypro.eftpay.com.cn:4001",
                "https://starpos.com.cn",
                "http://gateway.starpos.com.cn",
                "https://yolipai.com",
                "http://pay.yolipai.com",
                "http://pay-bj.xinda100.com",
                "http://pay.by0.top",
                "https://mapi.bestpay.com.cn",
                "http://pay.trx.helipay.com",
                "https://mapi.020leader.com",
                "https://api.shouqianba.com"
            };

        }



    }
}
